Select DISTINCT(yr) from (select year(issue_date) as yr, issue_date from color_master,np_master,stamps where issue_date!='' and np_master.np_code=stamps.np_code and np_master.np='P' and color_master.color_code=stamps.color_code and color_master.color='Carmine' and stamps.serial_no='0490' order by issue_date) t